<style src="./index.scss" lang="scss" scoped rel="stylesheet/scss"></style>
<template src="./index.html"></template>
<script>
import mixinsSelectData from "@/components/mixinsSelectData";

export default {
    mixins: [
        Vue.prototype.$vFN.Mixins.Base,
        Vue.prototype.$vFN.Mixins.List,
        mixinsSelectData,
    ],
    components: {
        ImageBox: async () =>
            Vue.extend(await Vue.prototype.$vFN.Components.Base.ImageBox()),
    },
    data() {
        return {
            // 窗口显示
            boxVisible: false,

            // 表格查询数据
            mixinList_tableSearchData: {
                name: "",
                // 上架状态 空全部 0上架
                publishStatus: "",
            },
        };
    },
    methods: {

        
        // 扩展方法，
        mixinList_getTableExtend(data_) {
            console.error("data_", data_);
            let _d = {};
            data_.forEach((item) => {
                if (item.publishStatus == 1) {
                    _d["ID" + item.id] = "未上架";
                }
            });

            this.disabledSelectList = _d;

            return data_;
        },
    },
    watch: {},
    mounted() {
        this.apiUrl = {
            list: {
                url: this.apiConfig.goodsList.url,
                domain: this.apiConfig.goodsList.domain,
            },
        };

        this.init();
    },
    beforeCreate() {},
};
</script>
